package test;

import java.util.ArrayList;
import java.util.List;

public class A implements B{
public static void main(String args[]){
    int i;
    A a1=new  A();
    i =a1.k;
    System.out.println("i="+i);


    Object o = new Object(){
        public boolean equals(Object obj){
            return (boolean)obj;
        }
    };
    System.out.println(o.equals("Fred"));
    }
}
interface B{
    int k=10;

}